#define SYSCALL_SLEEP       0
#define SYSCALL_SHM         1
#define SYSCALL_FBMAP       2
#define SYSCALL_GETMODEINFO 3

.globl sleep
sleep:
  // C compiler automatically generates `mov $1000, %rdi` as input param
  // system call number 0 - `do_sleep`
  mov $SYSCALL_SLEEP, %rax
  syscall
  ret

.globl shm_open
shm_open:
  // C compiler automatically generates `mov [&name], %rdi` as input param
  // system call number 1 - `do_shm`
  mov $SYSCALL_SHM, %rax
  syscall
  ret

.globl fbmap
fbmap:
  // system call number 2 - `do_fbmap`
  mov $SYSCALL_FBMAP, %rax
  syscall
  ret

.globl get_mode_info
get_mode_info:
  // system call number 3 - `do_get_mode_info`
  mov $SYSCALL_GETMODEINFO, %rax
  syscall
  ret